/**
 * 表格渲染器
 */
import {BaseRender} from "./base-render.ts"
import {TableItem} from "../components/element/index.ts";

/**
 * 表格组件
 */
type TableComponents<Prop> = TableItem<Prop>

/**
 * 表格组件接口
 */
export interface TableRender<Prop, Props, Events> extends BaseRender<Prop> {
    prop?: keyof Prop
    width?: number
    minWidth?: number
    props?: Partial<Props>,
    events?: Partial<Events>
}

/**
 * 表格组件列表
 */
export type TableEls<Prop> = TableComponents<Prop> | BaseRender<Prop>